home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #1 / Amiga Plus CD - 2000 - No. 1.iso / Tools / Dev / mamesrc / src / amiga / mess_msg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-12-03  |  16.4 KB  |  547 lines

  1. #ifndef MESS_MSG_H
  2. #define MESS_MSG_H
  3.  
  4.  
  5. /****************************************************************************/
  6.  
  7.  
  8. /* This file was created automatically by CatComp.
  9.  * Do NOT edit by hand!
  10.  */
  11.  
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifdef CATCOMP_ARRAY
  18. #undef CATCOMP_NUMBERS
  19. #undef CATCOMP_STRINGS
  20. #define CATCOMP_NUMBERS
  21. #define CATCOMP_STRINGS
  22. #endif
  23.  
  24. #ifdef CATCOMP_BLOCK
  25. #undef CATCOMP_STRINGS
  26. #define CATCOMP_STRINGS
  27. #endif
  28.  
  29.  
  30. /****************************************************************************/
  31.  
  32.  
  33. #ifdef CATCOMP_NUMBERS
  34.  
  35. #define MSG_NOMEM_SAMPLE 1
  36. #define MSG_LOG_ERRORS 2
  37. #define MSG_AUDIO_CH_0 3
  38. #define MSG_AUDIO_CH_1 4
  39. #define MSG_AUDIO_CH_2 5
  40. #define MSG_AUDIO_CH_3 6
  41. #define MSG_FRAMESKIP 7
  42. #define MSG_NO 8
  43. #define MSG_LEFT 9
  44. #define MSG_RIGHT 10
  45. #define MSG_ROTATION 11
  46. #define MSG_START 12
  47. #define MSG_QUIT 13
  48. #define MSG_MENU_GAME 14
  49. #define MSG_MENU_NEW 15
  50. #define MSG_MENU_SAVE_ILBM 16
  51. #define MSG_MENU_ABOUT 17
  52. #define MSG_MENU_QUIT 18
  53. #define MSG_SCREENMODE 19
  54. #define MSG_WIDTH 20
  55. #define MSG_HEIGHT 21
  56. #define MSG_FLIPX 22
  57. #define MSG_FLIPY 23
  58. #define MSG_DISPLAY 24
  59. #define MSG_SOUND 25
  60. #define MSG_INPUT 26
  61. #define MSG_PATHS 27
  62. #define MSG_SCAN_FOR_ROMS 28
  63. #define MSG_MIN_CHIP 29
  64. #define MSG_PRIMARY_CONTROLLER 30
  65. #define MSG_SECONDARY_CONTROLLER 31
  66. #define MSG_NONE 32
  67. #define MSG_JOYSTICK_PORT_1 33
  68. #define MSG_JOYPAD_PORT_1 34
  69. #define MSG_JOYSTICK_PORT_2 35
  70. #define MSG_JOYPAD_PORT_2 36
  71. #define MSG_MOUSE_PORT_1 37
  72. #define MSG_BUTTON_B_HOLD_TIME 38
  73. #define MSG_AUTO_FIRE_RATE 39
  74. #define MSG_TYPE 40
  75. #define MSG_ROM_PATH 41
  76. #define MSG_SAMPLE_PATH 42
  77. #define MSG_SCAN 43
  78. #define MSG_BUFFERING 44
  79. #define MSG_SINGLE 45
  80. #define MSG_DOUBLE 46
  81. #define MSG_TRIPLE 47
  82. #define MSG_ANTIALIAS 48
  83. #define MSG_BEAM 49
  84. #define MSG_FLICKER 50
  85. #define MSG_PAULA 51
  86. #define MSG_AHI 52
  87. #define MSG_DRIVERS 53
  88. #define MSG_DRIVER 54
  89. #define MSG_COMMENT 55
  90. #define MSG_BITMAP_GAME_DEFAULTS 56
  91. #define MSG_VECTOR_GAME_DEFAULTS 57
  92. #define MSG_BITMAP 58
  93. #define MSG_VECTOR 59
  94. #define MSG_NOT_WORKING 60
  95. #define MSG_SCREEN_TYPE 61
  96. #define MSG_BEST 62
  97. #define MSG_WORKBENCH 63
  98. #define MSG_CUSTOM 64
  99. #define MSG_USER_SELECT 65
  100. #define MSG_USE_DEFAULTS 66
  101. #define MSG_DIRECT_MODE 67
  102. #define MSG_OFF 68
  103. #define MSG_DRAW 69
  104. #define MSG_COPY 70
  105. #define MSG_DIRTY_LINES 71
  106. #define MSG_SHOW 72
  107. #define MSG_ALL 73
  108. #define MSG_FOUND 74
  109. #define MSG_COLORS 75
  110. #define MSG_INVALID 76
  111. #define MSG_REQUIRES_LIB 77
  112. #define MSG_FAILED_TO_LOAD_ELF 78
  113. #define MSG_FAILED_TO_CREATE_PPC_TASK 79
  114. #define MSG_NOT_ENOUGH_MEMORY 80
  115. #define MSG_FAILED_TO_OPEN_SCREEN 81
  116. #define MSG_FAILED_TO_OPEN_WINDOW 82
  117. #define MSG_FAILED_TO_ALLOCATE_INPUTS 83
  118. #define MSG_OK 84
  119.  
  120. #endif /* CATCOMP_NUMBERS */
  121.  
  122.  
  123. /****************************************************************************/
  124.  
  125.  
  126. #ifdef CATCOMP_STRINGS
  127.  
  128. #define MSG_NOMEM_SAMPLE_STR "Not enough memory to load sample \"%s\".\n"
  129. #define MSG_LOG_ERRORS_STR "Log errors"
  130. #define MSG_AUDIO_CH_0_STR "Audio channel 0"
  131. #define MSG_AUDIO_CH_1_STR "Audio channel 1"
  132. #define MSG_AUDIO_CH_2_STR "Audio channel 2"
  133. #define MSG_AUDIO_CH_3_STR "Audio channel 3"
  134. #define MSG_FRAMESKIP_STR "Frames to skip"
  135. #define MSG_NO_STR "No"
  136. #define MSG_LEFT_STR "Left"
  137. #define MSG_RIGHT_STR "Right"
  138. #define MSG_ROTATION_STR "Rotation"
  139. #define MSG_START_STR "_Start"
  140. #define MSG_QUIT_STR "_Quit"
  141. #define MSG_MENU_GAME_STR "Game"
  142. #define MSG_MENU_NEW_STR "New..."
  143. #define MSG_MENU_SAVE_ILBM_STR "Save ILBM..."
  144. #define MSG_MENU_ABOUT_STR "About..."
  145. #define MSG_MENU_QUIT_STR "Quit"
  146. #define MSG_SCREENMODE_STR "Screenmode"
  147. #define MSG_WIDTH_STR "Width"
  148. #define MSG_HEIGHT_STR "Height"
  149. #define MSG_FLIPX_STR "Flip X"
  150. #define MSG_FLIPY_STR "Flip Y"
  151. #define MSG_DISPLAY_STR "Display"
  152. #define MSG_SOUND_STR "Sound"
  153. #define MSG_INPUT_STR "Input"
  154. #define MSG_PATHS_STR "Paths"
  155. #define MSG_SCAN_FOR_ROMS_STR "Scan for roms"
  156. #define MSG_MIN_CHIP_STR "Minimum free chip memory"
  157. #define MSG_PRIMARY_CONTROLLER_STR "Primary controller"
  158. #define MSG_SECONDARY_CONTROLLER_STR "Secondary controller"
  159. #define MSG_NONE_STR "None"
  160. #define MSG_JOYSTICK_PORT_1_STR "Joystick in port 1"
  161. #define MSG_JOYPAD_PORT_1_STR "Joypad in port 1"
  162. #define MSG_JOYSTICK_PORT_2_STR "Joystick in port 2"
  163. #define MSG_JOYPAD_PORT_2_STR "Joypad in port 2"
  164. #define MSG_MOUSE_PORT_1_STR "Mouse in port 1"
  165. #define MSG_BUTTON_B_HOLD_TIME_STR "Button B hold time"
  166. #define MSG_AUTO_FIRE_RATE_STR "Auto fire rate"
  167. #define MSG_TYPE_STR "Type"
  168. #define MSG_ROM_PATH_STR "Rom path"
  169. #define MSG_SAMPLE_PATH_STR "Sample path"
  170. #define MSG_SCAN_STR "Scan"
  171. #define MSG_BUFFERING_STR "Buffering"
  172. #define MSG_SINGLE_STR "Single"
  173. #define MSG_DOUBLE_STR "Double"
  174. #define MSG_TRIPLE_STR "Triple"
  175. #define MSG_ANTIALIAS_STR "Vector antialiasing"
  176. #define MSG_BEAM_STR "Vector beam width"
  177. #define MSG_FLICKER_STR "Vector flicker"
  178. #define MSG_PAULA_STR "Paula"
  179. #define MSG_AHI_STR "AHI"
  180. #define MSG_DRIVERS_STR "Drivers"
  181. #define MSG_DRIVER_STR "Driver"
  182. #define MSG_COMMENT_STR "Comment"
  183. #define MSG_BITMAP_GAME_DEFAULTS_STR "Bitmap game defaults"
  184. #define MSG_VECTOR_GAME_DEFAULTS_STR "Vector game defaults"
  185. #define MSG_BITMAP_STR "Bitmap"
  186. #define MSG_VECTOR_STR "Vector"
  187. #define MSG_NOT_WORKING_STR "Not working"
  188. #define MSG_SCREEN_TYPE_STR "Screen type"
  189. #define MSG_BEST_STR "Best"
  190. #define MSG_WORKBENCH_STR "Workbench"
  191. #define MSG_CUSTOM_STR "Custom"
  192. #define MSG_USER_SELECT_STR "User select"
  193. #define MSG_USE_DEFAULTS_STR "Use defaults"
  194. #define MSG_DIRECT_MODE_STR "Direct mode"
  195. #define MSG_OFF_STR "Off"
  196. #define MSG_DRAW_STR "Draw"
  197. #define MSG_COPY_STR "Copy"
  198. #define MSG_DIRTY_LINES_STR "Dirty lines"
  199. #define MSG_SHOW_STR "Show"
  200. #define MSG_ALL_STR "All"
  201. #define MSG_FOUND_STR "Found"
  202. #define MSG_COLORS_STR "Colors"
  203. #define MSG_INVALID_STR "Invalid"
  204. #define MSG_REQUIRES_LIB_STR "Requires %s version %ld"
  205. #define MSG_FAILED_TO_LOAD_ELF_STR "Failed to load mameppc.elf"
  206. #define MSG_FAILED_TO_CREATE_PPC_TASK_STR "Failed to create PPC task"
  207. #define MSG_NOT_ENOUGH_MEMORY_STR "Not enough memory"
  208. #define MSG_FAILED_TO_OPEN_SCREEN_STR "Failed to open screen"
  209. #define MSG_FAILED_TO_OPEN_WINDOW_STR "Failed to open window"
  210. #define MSG_FAILED_TO_ALLOCATE_INPUTS_STR "Failed to allocate inputs"
  211. #define MSG_OK_STR "OK"
  212.  
  213. #endif /* CATCOMP_STRINGS */
  214.  
  215.  
  216. /****************************************************************************/
  217.  
  218.  
  219. #ifdef CATCOMP_ARRAY
  220.  
  221. struct CatCompArrayType
  222. {
  223.     LONG   cca_ID;
  224.     STRPTR cca_Str;
  225. };
  226.  
  227. static const struct CatCompArrayType CatCompArray[] =
  228. {
  229.     {MSG_NOMEM_SAMPLE,(STRPTR)MSG_NOMEM_SAMPLE_STR},
  230.     {MSG_LOG_ERRORS,(STRPTR)MSG_LOG_ERRORS_STR},
  231.     {MSG_AUDIO_CH_0,(STRPTR)MSG_AUDIO_CH_0_STR},
  232.     {MSG_AUDIO_CH_1,(STRPTR)MSG_AUDIO_CH_1_STR},
  233.     {MSG_AUDIO_CH_2,(STRPTR)MSG_AUDIO_CH_2_STR},
  234.     {MSG_AUDIO_CH_3,(STRPTR)MSG_AUDIO_CH_3_STR},
  235.     {MSG_FRAMESKIP,(STRPTR)MSG_FRAMESKIP_STR},
  236.     {MSG_NO,(STRPTR)MSG_NO_STR},
  237.     {MSG_LEFT,(STRPTR)MSG_LEFT_STR},
  238.     {MSG_RIGHT,(STRPTR)MSG_RIGHT_STR},
  239.     {MSG_ROTATION,(STRPTR)MSG_ROTATION_STR},
  240.     {MSG_START,(STRPTR)MSG_START_STR},
  241.     {MSG_QUIT,(STRPTR)MSG_QUIT_STR},
  242.     {MSG_MENU_GAME,(STRPTR)MSG_MENU_GAME_STR},
  243.     {MSG_MENU_NEW,(STRPTR)MSG_MENU_NEW_STR},
  244.     {MSG_MENU_SAVE_ILBM,(STRPTR)MSG_MENU_SAVE_ILBM_STR},
  245.     {MSG_MENU_ABOUT,(STRPTR)MSG_MENU_ABOUT_STR},
  246.     {MSG_MENU_QUIT,(STRPTR)MSG_MENU_QUIT_STR},
  247.     {MSG_SCREENMODE,(STRPTR)MSG_SCREENMODE_STR},
  248.     {MSG_WIDTH,(STRPTR)MSG_WIDTH_STR},
  249.     {MSG_HEIGHT,(STRPTR)MSG_HEIGHT_STR},
  250.     {MSG_FLIPX,(STRPTR)MSG_FLIPX_STR},
  251.     {MSG_FLIPY,(STRPTR)MSG_FLIPY_STR},
  252.     {MSG_DISPLAY,(STRPTR)MSG_DISPLAY_STR},
  253.     {MSG_SOUND,(STRPTR)MSG_SOUND_STR},
  254.     {MSG_INPUT,(STRPTR)MSG_INPUT_STR},
  255.     {MSG_PATHS,(STRPTR)MSG_PATHS_STR},
  256.     {MSG_SCAN_FOR_ROMS,(STRPTR)MSG_SCAN_FOR_ROMS_STR},
  257.     {MSG_MIN_CHIP,(STRPTR)MSG_MIN_CHIP_STR},
  258.     {MSG_PRIMARY_CONTROLLER,(STRPTR)MSG_PRIMARY_CONTROLLER_STR},
  259.     {MSG_SECONDARY_CONTROLLER,(STRPTR)MSG_SECONDARY_CONTROLLER_STR},
  260.     {MSG_NONE,(STRPTR)MSG_NONE_STR},
  261.     {MSG_JOYSTICK_PORT_1,(STRPTR)MSG_JOYSTICK_PORT_1_STR},
  262.     {MSG_JOYPAD_PORT_1,(STRPTR)MSG_JOYPAD_PORT_1_STR},
  263.     {MSG_JOYSTICK_PORT_2,(STRPTR)MSG_JOYSTICK_PORT_2_STR},
  264.     {MSG_JOYPAD_PORT_2,(STRPTR)MSG_JOYPAD_PORT_2_STR},
  265.     {MSG_MOUSE_PORT_1,(STRPTR)MSG_MOUSE_PORT_1_STR},
  266.     {MSG_BUTTON_B_HOLD_TIME,(STRPTR)MSG_BUTTON_B_HOLD_TIME_STR},
  267.     {MSG_AUTO_FIRE_RATE,(STRPTR)MSG_AUTO_FIRE_RATE_STR},
  268.     {MSG_TYPE,(STRPTR)MSG_TYPE_STR},
  269.     {MSG_ROM_PATH,(STRPTR)MSG_ROM_PATH_STR},
  270.     {MSG_SAMPLE_PATH,(STRPTR)MSG_SAMPLE_PATH_STR},
  271.     {MSG_SCAN,(STRPTR)MSG_SCAN_STR},
  272.     {MSG_BUFFERING,(STRPTR)MSG_BUFFERING_STR},
  273.     {MSG_SINGLE,(STRPTR)MSG_SINGLE_STR},
  274.     {MSG_DOUBLE,(STRPTR)MSG_DOUBLE_STR},
  275.     {MSG_TRIPLE,(STRPTR)MSG_TRIPLE_STR},
  276.     {MSG_ANTIALIAS,(STRPTR)MSG_ANTIALIAS_STR},
  277.     {MSG_BEAM,(STRPTR)MSG_BEAM_STR},
  278.     {MSG_FLICKER,(STRPTR)MSG_FLICKER_STR},
  279.     {MSG_PAULA,(STRPTR)MSG_PAULA_STR},
  280.     {MSG_AHI,(STRPTR)MSG_AHI_STR},
  281.     {MSG_DRIVERS,(STRPTR)MSG_DRIVERS_STR},
  282.     {MSG_DRIVER,(STRPTR)MSG_DRIVER_STR},
  283.     {MSG_COMMENT,(STRPTR)MSG_COMMENT_STR},
  284.     {MSG_BITMAP_GAME_DEFAULTS,(STRPTR)MSG_BITMAP_GAME_DEFAULTS_STR},
  285.     {MSG_VECTOR_GAME_DEFAULTS,(STRPTR)MSG_VECTOR_GAME_DEFAULTS_STR},
  286.     {MSG_BITMAP,(STRPTR)MSG_BITMAP_STR},
  287.     {MSG_VECTOR,(STRPTR)MSG_VECTOR_STR},
  288.     {MSG_NOT_WORKING,(STRPTR)MSG_NOT_WORKING_STR},
  289.     {MSG_SCREEN_TYPE,(STRPTR)MSG_SCREEN_TYPE_STR},
  290.     {MSG_BEST,(STRPTR)MSG_BEST_STR},
  291.     {MSG_WORKBENCH,(STRPTR)MSG_WORKBENCH_STR},
  292.     {MSG_CUSTOM,(STRPTR)MSG_CUSTOM_STR},
  293.     {MSG_USER_SELECT,(STRPTR)MSG_USER_SELECT_STR},
  294.     {MSG_USE_DEFAULTS,(STRPTR)MSG_USE_DEFAULTS_STR},
  295.     {MSG_DIRECT_MODE,(STRPTR)MSG_DIRECT_MODE_STR},
  296.     {MSG_OFF,(STRPTR)MSG_OFF_STR},
  297.     {MSG_DRAW,(STRPTR)MSG_DRAW_STR},
  298.     {MSG_COPY,(STRPTR)MSG_COPY_STR},
  299.     {MSG_DIRTY_LINES,(STRPTR)MSG_DIRTY_LINES_STR},
  300.     {MSG_SHOW,(STRPTR)MSG_SHOW_STR},
  301.     {MSG_ALL,(STRPTR)MSG_ALL_STR},
  302.     {MSG_FOUND,(STRPTR)MSG_FOUND_STR},
  303.     {MSG_COLORS,(STRPTR)MSG_COLORS_STR},
  304.     {MSG_INVALID,(STRPTR)MSG_INVALID_STR},
  305.     {MSG_REQUIRES_LIB,(STRPTR)MSG_REQUIRES_LIB_STR},
  306.     {MSG_FAILED_TO_LOAD_ELF,(STRPTR)MSG_FAILED_TO_LOAD_ELF_STR},
  307.     {MSG_FAILED_TO_CREATE_PPC_TASK,(STRPTR)MSG_FAILED_TO_CREATE_PPC_TASK_STR},
  308.     {MSG_NOT_ENOUGH_MEMORY,(STRPTR)MSG_NOT_ENOUGH_MEMORY_STR},
  309.     {MSG_FAILED_TO_OPEN_SCREEN,(STRPTR)MSG_FAILED_TO_OPEN_SCREEN_STR},
  310.     {MSG_FAILED_TO_OPEN_WINDOW,(STRPTR)MSG_FAILED_TO_OPEN_WINDOW_STR},
  311.     {MSG_FAILED_TO_ALLOCATE_INPUTS,(STRPTR)MSG_FAILED_TO_ALLOCATE_INPUTS_STR},
  312.     {MSG_OK,(STRPTR)MSG_OK_STR},
  313. };
  314.  
  315. #endif /* CATCOMP_ARRAY */
  316.  
  317.  
  318. /****************************************************************************/
  319.  
  320.  
  321. #ifdef CATCOMP_BLOCK
  322.  
  323. static const char CatCompBlock[] =
  324. {
  325.     "\x00\x00\x00\x01\x00\x28"
  326.     MSG_NOMEM_SAMPLE_STR "\x00"
  327.     "\x00\x00\x00\x02\x00\x0C"
  328.     MSG_LOG_ERRORS_STR "\x00\x00"
  329.     "\x00\x00\x00\x03\x00\x10"
  330.     MSG_AUDIO_CH_0_STR "\x00"
  331.     "\x00\x00\x00\x04\x00\x10"
  332.     MSG_AUDIO_CH_1_STR "\x00"
  333.     "\x00\x00\x00\x05\x00\x10"
  334.     MSG_AUDIO_CH_2_STR "\x00"
  335.     "\x00\x00\x00\x06\x00\x10"
  336.     MSG_AUDIO_CH_3_STR "\x00"
  337.     "\x00\x00\x00\x07\x00\x10"
  338.     MSG_FRAMESKIP_STR "\x00\x00"
  339.     "\x00\x00\x00\x08\x00\x04"
  340.     MSG_NO_STR "\x00\x00"
  341.     "\x00\x00\x00\x09\x00\x06"
  342.     MSG_LEFT_STR "\x00\x00"
  343.     "\x00\x00\x00\x0A\x00\x06"
  344.     MSG_RIGHT_STR "\x00"
  345.     "\x00\x00\x00\x0B\x00\x0A"
  346.     MSG_ROTATION_STR "\x00\x00"
  347.     "\x00\x00\x00\x0C\x00\x08"
  348.     MSG_START_STR "\x00\x00"
  349.     "\x00\x00\x00\x0D\x00\x06"
  350.     MSG_QUIT_STR "\x00"
  351.     "\x00\x00\x00\x0E\x00\x06"
  352.     MSG_MENU_GAME_STR "\x00\x00"
  353.     "\x00\x00\x00\x0F\x00\x08"
  354.     MSG_MENU_NEW_STR "\x00\x00"
  355.     "\x00\x00\x00\x10\x00\x0E"
  356.     MSG_MENU_SAVE_ILBM_STR "\x00\x00"
  357.     "\x00\x00\x00\x11\x00\x0A"
  358.     MSG_MENU_ABOUT_STR "\x00\x00"
  359.     "\x00\x00\x00\x12\x00\x06"
  360.     MSG_MENU_QUIT_STR "\x00\x00"
  361.     "\x00\x00\x00\x13\x00\x0C"
  362.     MSG_SCREENMODE_STR "\x00\x00"
  363.     "\x00\x00\x00\x14\x00\x06"
  364.     MSG_WIDTH_STR "\x00"
  365.     "\x00\x00\x00\x15\x00\x08"
  366.     MSG_HEIGHT_STR "\x00\x00"
  367.     "\x00\x00\x00\x16\x00\x08"
  368.     MSG_FLIPX_STR "\x00\x00"
  369.     "\x00\x00\x00\x17\x00\x08"
  370.     MSG_FLIPY_STR "\x00\x00"
  371.     "\x00\x00\x00\x18\x00\x08"
  372.     MSG_DISPLAY_STR "\x00"
  373.     "\x00\x00\x00\x19\x00\x06"
  374.     MSG_SOUND_STR "\x00"
  375.     "\x00\x00\x00\x1A\x00\x06"
  376.     MSG_INPUT_STR "\x00"
  377.     "\x00\x00\x00\x1B\x00\x06"
  378.     MSG_PATHS_STR "\x00"
  379.     "\x00\x00\x00\x1C\x00\x0E"
  380.     MSG_SCAN_FOR_ROMS_STR "\x00"
  381.     "\x00\x00\x00\x1D\x00\x1A"
  382.     MSG_MIN_CHIP_STR "\x00\x00"
  383.     "\x00\x00\x00\x1E\x00\x14"
  384.     MSG_PRIMARY_CONTROLLER_STR "\x00\x00"
  385.     "\x00\x00\x00\x1F\x00\x16"
  386.     MSG_SECONDARY_CONTROLLER_STR "\x00\x00"
  387.     "\x00\x00\x00\x20\x00\x06"
  388.     MSG_NONE_STR "\x00\x00"
  389.     "\x00\x00\x00\x21\x00\x14"
  390.     MSG_JOYSTICK_PORT_1_STR "\x00\x00"
  391.     "\x00\x00\x00\x22\x00\x12"
  392.     MSG_JOYPAD_PORT_1_STR "\x00\x00"
  393.     "\x00\x00\x00\x23\x00\x14"
  394.     MSG_JOYSTICK_PORT_2_STR "\x00\x00"
  395.     "\x00\x00\x00\x24\x00\x12"
  396.     MSG_JOYPAD_PORT_2_STR "\x00\x00"
  397.     "\x00\x00\x00\x25\x00\x10"
  398.     MSG_MOUSE_PORT_1_STR "\x00"
  399.     "\x00\x00\x00\x26\x00\x14"
  400.     MSG_BUTTON_B_HOLD_TIME_STR "\x00\x00"
  401.     "\x00\x00\x00\x27\x00\x10"
  402.     MSG_AUTO_FIRE_RATE_STR "\x00\x00"
  403.     "\x00\x00\x00\x28\x00\x06"
  404.     MSG_TYPE_STR "\x00\x00"
  405.     "\x00\x00\x00\x29\x00\x0A"
  406.     MSG_ROM_PATH_STR "\x00\x00"
  407.     "\x00\x00\x00\x2A\x00\x0C"
  408.     MSG_SAMPLE_PATH_STR "\x00"
  409.     "\x00\x00\x00\x2B\x00\x06"
  410.     MSG_SCAN_STR "\x00\x00"
  411.     "\x00\x00\x00\x2C\x00\x0A"
  412.     MSG_BUFFERING_STR "\x00"
  413.     "\x00\x00\x00\x2D\x00\x08"
  414.     MSG_SINGLE_STR "\x00\x00"
  415.     "\x00\x00\x00\x2E\x00\x08"
  416.     MSG_DOUBLE_STR "\x00\x00"
  417.     "\x00\x00\x00\x2F\x00\x08"
  418.     MSG_TRIPLE_STR "\x00\x00"
  419.     "\x00\x00\x00\x30\x00\x14"
  420.     MSG_ANTIALIAS_STR "\x00"
  421.     "\x00\x00\x00\x31\x00\x12"
  422.     MSG_BEAM_STR "\x00"
  423.     "\x00\x00\x00\x32\x00\x10"
  424.     MSG_FLICKER_STR "\x00\x00"
  425.     "\x00\x00\x00\x33\x00\x06"
  426.     MSG_PAULA_STR "\x00"
  427.     "\x00\x00\x00\x34\x00\x04"
  428.     MSG_AHI_STR "\x00"
  429.     "\x00\x00\x00\x35\x00\x08"
  430.     MSG_DRIVERS_STR "\x00"
  431.     "\x00\x00\x00\x36\x00\x08"
  432.     MSG_DRIVER_STR "\x00\x00"
  433.     "\x00\x00\x00\x37\x00\x08"
  434.     MSG_COMMENT_STR "\x00"
  435.     "\x00\x00\x00\x38\x00\x16"
  436.     MSG_BITMAP_GAME_DEFAULTS_STR "\x00\x00"
  437.     "\x00\x00\x00\x39\x00\x16"
  438.     MSG_VECTOR_GAME_DEFAULTS_STR "\x00\x00"
  439.     "\x00\x00\x00\x3A\x00\x08"
  440.     MSG_BITMAP_STR "\x00\x00"
  441.     "\x00\x00\x00\x3B\x00\x08"
  442.     MSG_VECTOR_STR "\x00\x00"
  443.     "\x00\x00\x00\x3C\x00\x0C"
  444.     MSG_NOT_WORKING_STR "\x00"
  445.     "\x00\x00\x00\x3D\x00\x0C"
  446.     MSG_SCREEN_TYPE_STR "\x00"
  447.     "\x00\x00\x00\x3E\x00\x06"
  448.     MSG_BEST_STR "\x00\x00"
  449.     "\x00\x00\x00\x3F\x00\x0A"
  450.     MSG_WORKBENCH_STR "\x00"
  451.     "\x00\x00\x00\x40\x00\x08"
  452.     MSG_CUSTOM_STR "\x00\x00"
  453.     "\x00\x00\x00\x41\x00\x0C"
  454.     MSG_USER_SELECT_STR "\x00"
  455.     "\x00\x00\x00\x42\x00\x0E"
  456.     MSG_USE_DEFAULTS_STR "\x00\x00"
  457.     "\x00\x00\x00\x43\x00\x0C"
  458.     MSG_DIRECT_MODE_STR "\x00"
  459.     "\x00\x00\x00\x44\x00\x04"
  460.     MSG_OFF_STR "\x00"
  461.     "\x00\x00\x00\x45\x00\x06"
  462.     MSG_DRAW_STR "\x00\x00"
  463.     "\x00\x00\x00\x46\x00\x06"
  464.     MSG_COPY_STR "\x00\x00"
  465.     "\x00\x00\x00\x47\x00\x0C"
  466.     MSG_DIRTY_LINES_STR "\x00"
  467.     "\x00\x00\x00\x48\x00\x06"
  468.     MSG_SHOW_STR "\x00\x00"
  469.     "\x00\x00\x00\x49\x00\x04"
  470.     MSG_ALL_STR "\x00"
  471.     "\x00\x00\x00\x4A\x00\x06"
  472.     MSG_FOUND_STR "\x00"
  473.     "\x00\x00\x00\x4B\x00\x08"
  474.     MSG_COLORS_STR "\x00\x00"
  475.     "\x00\x00\x00\x4C\x00\x08"
  476.     MSG_INVALID_STR "\x00"
  477.     "\x00\x00\x00\x4D\x00\x18"
  478.     MSG_REQUIRES_LIB_STR "\x00"
  479.     "\x00\x00\x00\x4E\x00\x1C"
  480.     MSG_FAILED_TO_LOAD_ELF_STR "\x00\x00"
  481.     "\x00\x00\x00\x4F\x00\x1A"
  482.     MSG_FAILED_TO_CREATE_PPC_TASK_STR "\x00"
  483.     "\x00\x00\x00\x50\x00\x12"
  484.     MSG_NOT_ENOUGH_MEMORY_STR "\x00"
  485.     "\x00\x00\x00\x51\x00\x16"
  486.     MSG_FAILED_TO_OPEN_SCREEN_STR "\x00"
  487.     "\x00\x00\x00\x52\x00\x16"
  488.     MSG_FAILED_TO_OPEN_WINDOW_STR "\x00"
  489.     "\x00\x00\x00\x53\x00\x1A"
  490.     MSG_FAILED_TO_ALLOCATE_INPUTS_STR "\x00"
  491.     "\x00\x00\x00\x54\x00\x04"
  492.     MSG_OK_STR "\x00\x00"
  493. };
  494.  
  495. #endif /* CATCOMP_BLOCK */
  496.  
  497.  
  498. /****************************************************************************/
  499.  
  500.  
  501. struct LocaleInfo
  502. {
  503.     APTR li_LocaleBase;
  504.     APTR li_Catalog;
  505. };
  506.  
  507.  
  508. STRPTR GetMessage(LONG);
  509.  
  510.  
  511. #ifdef CATCOMP_CODE
  512.  
  513. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  514. {
  515. LONG   *l;
  516. UWORD  *w;
  517. STRPTR  builtIn;
  518.  
  519.     l = (LONG *)CatCompBlock;
  520.  
  521.     while (*l != stringNum)
  522.     {
  523.         w = (UWORD *)((ULONG)l + 4);
  524.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  525.     }
  526.     builtIn = (STRPTR)((ULONG)l + 6);
  527.  
  528. #define XLocaleBase LocaleBase
  529. #define LocaleBase li->li_LocaleBase
  530.     
  531.     if (LocaleBase)
  532.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  533. #define LocaleBase XLocaleBase
  534. #undef XLocaleBase
  535.  
  536.     return(builtIn);
  537. }
  538.  
  539.  
  540. #endif /* CATCOMP_CODE */
  541.  
  542.  
  543. /****************************************************************************/
  544.  
  545.  
  546. #endif /* MESS_MSG_H */
  547.